import Vue from 'vue'
import Router from 'vue-router'
const home = () => import('../page/home')
const report = () => import('../page/report')
const knowledge = () => import('../page/knowledge/knowledge')

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'home',
      component: home
    },
    {
      path: '/report/:grade/:name',
      name: 'report',
      component: report
    },
    {
      path: '/knowledge',
      name: 'knowledge',
      component: knowledge
    }
  ]
})
